package com.mayisoftware.mayioa.business.worktime.api.domain;


import com.mayisoftware.mayioa.common.impl.utils.DateUtils;

import java.util.Date;

public class TMWorkTimeSummary {


    private String idCard;
    private String WBCode;
    private String name;
    private Date checkDate;
    private String type;
    private String model;
    private String po;
    private String grade;
    private String status;
    private float attendanceTime;
    private float leaveTime;
    private float absenteeismTime;
    private float punishmentTime;
    private float oweTime;
    private float overtimeTime;
    private String hwPM;
    private String changePO;
    private String changeLine;
    private String changeSubLine;
    private String changetPdu;
    private String changeStatus;
    private Date updateDate;
    private String updateUser;
    private String month;
    private String bg;
    private String bu;
    private String pdu;
    private String poNum;
    private String fileName;

    private float diffHours;
    private  String checkResult ="";
    public String getIdCard() {
        return idCard;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getWBCode() {
        return WBCode;
    }

    public void setWBCode(String WBCode) {
        this.WBCode = WBCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(Date checkDate) {
        this.checkDate = checkDate;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getPo() {
        return po;
    }

    public void setPo(String po) {
        this.po = po;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public float getAttendanceTime() {
        return attendanceTime;
    }

    public void setAttendanceTime(float attendanceTime) {
        this.attendanceTime = attendanceTime;
    }

    public float getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(float leaveTime) {
        this.leaveTime = leaveTime;
    }

    public float getAbsenteeismTime() {
        return absenteeismTime;
    }

    public void setAbsenteeismTime(float absenteeismTime) {
        this.absenteeismTime = absenteeismTime;
    }

    public float getPunishmentTime() {
        return punishmentTime;
    }

    public void setPunishmentTime(float punishmentTime) {
        this.punishmentTime = punishmentTime;
    }

    public float getOweTime() {
        return oweTime;
    }

    public void setOweTime(float oweTime) {
        this.oweTime = oweTime;
    }

    public float getOvertimeTime() {
        return overtimeTime;
    }

    public void setOvertimeTime(float overtimeTime) {
        this.overtimeTime = overtimeTime;
    }

    public String getHwPM() {
        return hwPM;
    }

    public void setHwPM(String hwPM) {
        this.hwPM = hwPM;
    }

    public String getChangePO() {
        return changePO;
    }

    public void setChangePO(String changePO) {
        this.changePO = changePO;
    }

    public String getChangeLine() {
        return changeLine;
    }

    public void setChangeLine(String changeLine) {
        this.changeLine = changeLine;
    }

    public String getChangeSubLine() {
        return changeSubLine;
    }

    public void setChangeSubLine(String changeSubLine) {
        this.changeSubLine = changeSubLine;
    }

    public String getChangetPdu() {
        return changetPdu;
    }

    public void setChangetPdu(String changetPdu) {
        this.changetPdu = changetPdu;
    }

    public String getChangeStatus() {
        return changeStatus;
    }

    public void setChangeStatus(String changeStatus) {
        this.changeStatus = changeStatus;
    }

    public float getDiffHours() {
        return diffHours;
    }

    public void setDiffHours(float diffHours) {
        this.diffHours = diffHours;
    }

    public void setCheckResult(String checkResult) {
        this.checkResult = checkResult;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getBg() {
        return bg;
    }

    public void setBg(String bg) {
        this.bg = bg;
    }

    public String getBu() {
        return bu;
    }

    public void setBu(String bu) {
        this.bu = bu;
    }

    public String getPdu() {
        return pdu;
    }

    public void setPdu(String pdu) {
        this.pdu = pdu;
    }

    public String getPoNum() {
        return poNum;
    }

    public void setPoNum(String poNum) {
        this.poNum = poNum;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.getIdCard()+",");
        sb.append(this.getWBCode()+",");
        sb.append(this.getName()+",");
        sb.append(DateUtils.dateTime(this.getCheckDate())+",");
        sb.append(this.getType()+",");
        sb.append(this.getModel()+",");
        sb.append(this.getPo()+",");
        sb.append(this.getGrade()+",");
        sb.append(this.getStatus()+",");
        sb.append(this.getAttendanceTime()+",");
        sb.append(this.getLeaveTime()+",");
        sb.append(this.getAbsenteeismTime()+",");
        sb.append(this.getPunishmentTime()+",");
        sb.append(this.getOweTime()+",");
        sb.append(this.getOvertimeTime()+",");
        sb.append(this.getHwPM()+",");
        sb.append(this.getChangePO()+",");
        sb.append(this.getChangeLine()+",");
        sb.append(this.getChangeSubLine()+",");
        sb.append(this.getChangetPdu()+",");
        sb.append(this.getChangeStatus());
        return sb.toString();
    }

    public String getCheckResult() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.getIdCard()+",");
        sb.append(this.getWBCode()+",");
        sb.append(this.getName()+",");
        sb.append(DateUtils.dateTime(this.getCheckDate())+",");
//        sb.append(this.getStartTime()+",");
//        sb.append(this.getEndTime()+",");
        sb.append(this.getType()+",");
        sb.append(this.getModel()+",");
        sb.append(this.getPo()+",");
        sb.append(this.getGrade()+",");
        sb.append(this.getStatus()+",");
        sb.append(this.getAttendanceTime()+",");
        sb.append(this.getLeaveTime()+",");
        sb.append(this.getAbsenteeismTime()+",");
        sb.append(this.getPunishmentTime()+",");
        sb.append(this.getOweTime()+",");
        sb.append(this.getOvertimeTime()+",");
        sb.append(this.getHwPM()+",");
        sb.append(this.getChangePO()+",");
        sb.append(this.getChangeLine()+",");
        sb.append(this.getChangeSubLine()+",");
        sb.append(this.getChangetPdu()+",");
        sb.append(this.getChangeStatus()+",");
        sb.append(this.getDiffHours()+",");
        sb.append(this.getCheckResult());
        return sb.toString();
    }


//    public String getStartTime() {
//        return startTime;
//    }
//
//    public void setStartTime(String startTime) {
//        this.startTime = startTime;
//    }
//
//    public String getEndTime() {
//        return endTime;
//    }
//
//    public void setEndTime(String endTime) {
//        this.endTime = endTime;
//    }
}
